﻿using Shop.RemoteModel.FrontCategory;
using Shop.Service.Interface;
using WeDonekRpc.Client.Interface;

namespace Shop.Service.RpcEvent
{
    internal class FrontCategoryBindEvent : IRpcApiService
    {
        private readonly IFrontCategoryBindService _Service;

        public FrontCategoryBindEvent (IFrontCategoryBindService service)
        {
            this._Service = service;
        }
        public bool SetFrontCategoryBind (SetFrontCategoryBind obj)
        {
            return this._Service.Set(obj.FrontId, obj.CategoryId);
        }
    }
}
